Midnight fireworks: a Jlerts custom widget
==========================================

A full-screen, see-through firework show for New Year. At midnight on New Year's Eve (by your PC's clock) rockets fly
up from both sides and burst: round bursts, rings, drooping gold willows and crackling ones. Then a last row of
rockets goes up, one for each letter, and their sparks fly together to spell HAPPY NEW YEAR and the year that's just
begun (taken from the clock, so it's right every year). The words twinkle, then fall away as glitter, or stay up if
you like (until a timer, or until you take them down).

Chat can set off fireworks all year: when someone types !firework, a rocket bursts at a random spot with their name
in the middle. You pick who can, how long each person waits before another, and how many can be in the air at once.

Add it to Jlerts
1. Unzip this folder somewhere it can stay (for example Documents\Jlerts widgets\Midnight fireworks).
2. In Jlerts: Widgets -> + New widget -> Custom widget (HTML / CSS / JS).
3. Widget folder -> Choose folder... and pick this folder. Its settings appear underneath.
4. It takes its own name and size (1920 x 1080, the whole screen) from widget.json when you choose the folder.
   Put it on top of everything on your overlay: it's see-through, so only the fireworks show.
Try it: type !fireworks practice in chat for the whole show now (the year shown is the coming one).

Settings
  Words: the two lines (in any language), and the year on or off, each line's colour.
  Keep the words on screen: they stay after the show, until the minutes you set are up (0: until !fireworks clear).
  Sound at midnight: one of Jlerts' sounds or your own file (a song, a countdown cheer...), with its volume.
  Firework bangs volume: the whooshes, booms and crackles (0 for silent).

Chat commands
  You and your mods: !fireworks practice (the whole show now)   !fireworks clear (take the words down)
  Chat (if it's on): !firework (you can rename it)

Change it
  widget.json      its name and size when it's added
  fields.json      the settings people can change without code
  script.js        the show: rockets, bursts, the words, chat's fireworks
  sounds/*.wav     launch, boom and crackle: swap any for your own .wav with the same name
  make-sounds.py   how the sounds were made (python make-sounds.py makes them again)
After changing a file, refresh the overlay in OBS (right-click it -> Refresh).

Free to use and change for your streams.
